import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;



public class MyCanvas extends Canvas {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1807181047930669630L;

	void clear(){
		repaint();	
	}
	
	public void drawCircle(int x, int y, int z, Color c) {
		Graphics g = this.getGraphics();
		g.setColor(c);
		g.drawArc(x, y, z, z, 0, 360);	
	}
	
	public void drawSquare(int x, int y, int z, Color c) {
		Graphics g = this.getGraphics();
		g.setColor(c);
		g.drawRect(x,y,z,z);	
	}
	
	public void fillSquare(int x, int y, int z, Color c) {
		Graphics g = this.getGraphics();
		g.setColor(c);
		g.fillRect(x,y,z,z);	
	}

	public void fillCircle(int x, int y, int z, Color c) {
		Graphics g = this.getGraphics();
		g.setColor(c);
		g.fillArc(x, y, z, z, 0, 360);	
	}
	
}
